<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title>操作日志</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <style>
        .layui-fluid {
            padding: 0;
        }
        .layui-table, .layui-table-view {
            margin: 0;
        }
    </style>
</head>
<body>
<div class="layui-fluid">
    <table class="layui-hide" id="table" lay-filter="table"></table>
</div>
<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element', 'table', 'jquery', 'laydate', 'layer', 'form'], function(){
        var element = layui.element,
            table   = layui.table,
            $       = layui.jquery;

        // 获取数据并渲染表格
        table.render({
            elem: '#table'
            ,url: location.href
            ,title: document.title
            ,method: 'post'
            ,id: 'table'
            ,cols: [[
                {field:'extra', title: '额外信息', width:110}
                ,{field:'info', title: '描述'}
                ,{field:'ua', title: '设备', width:165}
                ,{field:'ip', title: 'IP', width:130}
                ,{field:'create_time', title: '创建时间', width:145}
            ]]
            ,where: {
                user_id: '{$Request.param.user_id}'
            }
            ,page: true
            ,height: ''
            ,limit: 15
            ,size: 'sm'
        });
    });

</script>
</body>
</html>